package cn.com.chengmandian.core.web.pojo;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class AppInfo {
    private Integer id;

    private String name;

    private String appKey;

    private String appSecret;

    private String appToken;

    private String tokenSecret;

    private Integer isEnabled;

    private Integer tenantId;

    /**
     * 扩展信息
     */
    private Map<String, Object> attrs = new HashMap<>();

    public <T> T get(String key) {
        return (T)attrs.get(key);
    }

    public void set(String key, Object value) {
        attrs.put(key, value);
    }
}
